public class TimeServer {
    public static void main(String[] args) {
        int port = Global.port;
        if (args != null && args.length > 0) {
            try {
                port = Integer.valueOf(args[0]);
            } catch (Exception e) {
                // use default
            }
        }
        AsynTimeServerHandler asynTimeServerHandler = new AsynTimeServerHandler(port);
        new Thread(asynTimeServerHandler, "aio-AsynTimeServerHandler-001").start();
    }
}
